import requests

base_url = 'https://www.baidu.com/s'
param = 'wd=python'

full_url = base_url + '?' + param

response = requests.get(full_url)

print(response.status_code)